The REST API is now versioned. For more information, see "About API versioning."
REST API endpoints for models catalog
Use the REST API to get a list of models available for use, including details like ID, supported input/output modalities, and rate limits.
About GitHub Models catalog
You can use the REST API to explore available models in the GitHub Models catalog.
List all models
Get a list of models available for use, including details like supported input/output modalities, publisher, and rate limits.
HTTP response status codes for "List all models"
Status code | Description |
---|---|
200 | OK |
Code samples for "List all models"
Request example
get/catalog/models
curl -L \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer <YOUR-TOKEN>" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://models.github.ai/catalog/models
Response
Status: 200
[
{
"id": "openai/gpt-4.1",
"name": "OpenAI GPT-4.1",
"publisher": "OpenAI",
"summary": "gpt-4.1 outperforms gpt-4o across the board, with major gains in coding, instruction following, and long-context understanding",
"rate_limit_tier": "high",
"supported_input_modalities": [
"text",
"image",
"audio"
],
"supported_output_modalities": [
"text"
],
"tags": [
"multipurpose",
"multilingual",
"multimodal"
]
}
]